import pygame;

screen = pygame.display.set_mode((400,400))
done = False
while not done:
    event = pygame.event.poll()
    if event.type == pygame.QUIT:
        done = True
print("done")